﻿# CMakeList.txt: 顶层 CMake 项目文件，在此处执行全局配置
# 并包含子项目。
#
cmake_minimum_required (VERSION 3.8)

set (CMAKE_CXX_STANDARD 11)
# Normalize backslashes from Windows paths
#file(TO_CMAKE_PATH "${CMAKE_MODULE_PATH}" CMAKE_MODULE_PATH)
#file(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH)
#message(STATUS "Module Path: ${CMAKE_MODULE_PATH}")
#message(STATUS "Prefix Path: ${CMAKE_PREFIX_PATH}")

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
message(STATUS "Current Source Path: ${CMAKE_CURRENT_SOURCE_DIR}")

project ("boost_asio_study")

#string(COMPARE EQUAL "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_SOURCE_DIR}" _cmp)
#if (_cmp)
#  macro(find_package)
#    if(NOT "${ARGV0}" IN_LIST as_subproject)
#      _find_package(${ARGV})
#    endif()
#  endmacro()
#endif()

# 包含子项目。
add_subdirectory ("boost_asio_study")
